package org.springblade.modules.admin.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author ysq
 * @Date 2024/10/11
 * @Description 电梯配件结构关联sku信息DTO
 */
@Data
public class ElevatorPartsRelationInsertDTO {

	@NotNull(message = "电梯id不能为空")
	@ApiModelProperty(value = "电梯id")
	private Long elevatorId;

	@NotNull(message = "配件结构id不能为空")
	@ApiModelProperty(value = "配件结构id")
	private Long partsId;

	@ApiModelProperty(value = "层站模板id")
	private Long floorStandTemplateId;

	@ApiModelProperty(value = "sku信息")
	private List<SkuInfo> skuInfoList;

	@Data
	public static class SkuInfo {
		@NotNull(message = "skuId不能为空")
		@ApiModelProperty(value = "skuId")
		private Long skuId;

		@NotBlank(message = "sku属性不能为空")
		@ApiModelProperty(value = "sku属性")
		private String skuAttr;
	}

}
